package com.ty.user.starter.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 天宇-自定义异常类
 *
 * @author lxm
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserMgtException extends Exception {

    private static final long serialVersionUID = -4293525931894602979L;

    private Integer code;

    public UserMgtException() {
        super();
    }

    public UserMgtException(String errMsg) {
        super(errMsg);
    }

    public UserMgtException(String msg, Integer code) {
        super(msg);
        this.code = code;
    }

    public UserMgtException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserMgtException(Throwable cause) {
        super(cause);
    }

    public UserMgtException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
